package com.yjc.hire.work.repository;

import com.yjc.mo.HrCountMO;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * </p>
 *
 * @author jcyin
 * @since 2025/9/3
 * </p>
 */

@Repository
public interface HrCollectRepository extends MongoRepository<HrCountMO,String> {
    public void deleteByHrIdAndResumeExpectId(String hrId, String resumeExpectId);

    public List<HrCountMO> findByHrIdAndResumeExpectId(String hrId, String resumeExpectId);

    public List<HrCountMO> findAllByHrIdOrderByCreateTimeDesc(String hrId, Pageable pageable);

    public List<HrCountMO> findAllByHrId(String hrId,Pageable pageable);
}
